package com.csxy.chy.api;

import com.csxy.chy.R;
import com.csxy.chy.api.impl.VodClientIpml;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(value = "service-vod",fallback = VodClientIpml.class)
public interface VodClient {
    //删除视频
    @DeleteMapping("/eduvod/video/removeAliyunVideoById/{id}")
    public R removeAliyunVideoById(@PathVariable("id") String id);
    //删除多个视频
    @DeleteMapping("/removeBatch")
    public R removeBatch(@RequestParam("videoIdlist") List<String> videoIdList);
}
